<TITLE>Application launching</TITLE>
<FILE>gdkapplaunchcontext</FILE>
GdkAppLaunchContext
+gdk_app_launch_context_get_display
gdk_app_launch_context_set_desktop
gdk_app_launch_context_set_timestamp
gdk_app_launch_context_set_icon
*/
static void gdk_app_launch_context_finalize (GObject *object);
-static gchar * gdk_app_launch_context_get_display (GAppLaunchContext *context,
- GAppInfo *info,
- GList *files);
+static gchar * gdk_app_launch_context_get_display_name (GAppLaunchContext *context,
+ GAppInfo *info,
+ GList *files);
static gchar * gdk_app_launch_context_get_startup_notify_id (GAppLaunchContext *context,
GAppInfo *info,
GList *files);
gobject_class->finalize = gdk_app_launch_context_finalize;
- context_class->get_display = gdk_app_launch_context_get_display;
+ context_class->get_display = gdk_app_launch_context_get_display_name;
context_class->get_startup_notify_id = gdk_app_launch_context_get_startup_notify_id;
context_class->launch_failed = gdk_app_launch_context_launch_failed;
}
static gchar *
-gdk_app_launch_context_get_display (GAppLaunchContext *context,
- GAppInfo *info,
- GList *files)
+gdk_app_launch_context_get_display_name (GAppLaunchContext *context,
+ GAppInfo *info,
+ GList *files)
{
GdkAppLaunchContext *ctx = GDK_APP_LAUNCH_CONTEXT (context);
GdkDisplay *display;
return g_strdup (gdk_display_get_name (display));
}
+/**
+ * gdk_app_launch_context_get_display:
+ * @context: a #GdkAppLaunchContext
+ *
+ * Gets the #GdkDispolat that @context is for.
+ *
+ * Returns: the display of @context
+ */
+GdkDisplay *
+gdk_app_launch_context_get_display (GdkAppLaunchContext *context)
+{
+ g_return_val_if_fail (GDK_IS_APP_LAUNCH_CONTEXT (context), NULL);
+
+ return context->display;
+}
+
/**
* gdk_app_launch_context_set_desktop:
* @context: a #GdkAppLaunchContext
GDK_AVAILABLE_IN_ALL
GType gdk_app_launch_context_get_type (void);
+GDK_AVAILABLE_IN_ALL
+GdkDisplay * gdk_app_launch_context_get_display (GdkAppLaunchContext *context);
+
GDK_AVAILABLE_IN_ALL
void gdk_app_launch_context_set_desktop (GdkAppLaunchContext *context,
gint desktop);
void gdk_app_launch_context_set_icon_name (GdkAppLaunchContext *context,
const char *icon_name);
+
G_END_DECLS
#endif /* __GDK_APP_LAUNCH_CONTEXT_H__ */